<?php
    class Table extends CI_Model{
        function __construct(){
            // Call the Model constructor
            parent::__construct();
        }

        public function getList(){        
            $query = $this->db->get('tables');
            return $query->result();
        }
    }  
?>